﻿@model GameSchool.Models.RegisterModel
<!--Brauðmolar-->
<ul class="breadcrumb">  
	<li><a href="/Home">Forsíða</a> <span class="divider">></span></li>  
	<li class="active"><a href="/Account/Register">Skrá notanda</a></li>  
</ul>
<!--Brauðmolar enda-->
@{
    ViewBag.Title = "Skrá notanda";
}
<!--
<h3>Stofna nýjann notanda</h3>
<p>
    Fylltu út í reitina hér fyrir neðan til að stofna nýjann notanda. 
</p>
<p>
    Lykilorð þarf að vera að lágmarki @Membership.MinRequiredPasswordLength stafir í lengd.
</p>
-->

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) 
{
    @Html.ValidationSummary(true, "Eitthvað klikkaði. Þér er óhætt að endurskoða gögnin sem þú slóst inn")
    <div class="well">
        <fieldset>
            <legend>Notanda upplýsingar</legend>
			<br />
			<h5>Fylltu út í reitina hér fyrir neðan til að stofna nýjann notanda. </h5>
			<br />
			<h5>Lykilorð þarf að vera að lágmarki @Membership.MinRequiredPasswordLength stafir í lengd.</h5>
			<br />
			<br />
            <div class="editor-label">
                @Html.LabelFor(m => m.UserName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>

			<div class="editor-label">
                Tegund Notanda:
            </div>
            <div class="editor-field">
                @Html.DropDownList("roleName")
                @Html.ValidationMessage("roleName")
             </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Email)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>

             <div class="editor-label">
                @Html.LabelFor(m => m.FullName)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.FullName)
                @Html.ValidationMessageFor(m => m.FullName)
            </div>

             <div class="editor-label">
                @Html.LabelFor(m => m.Address)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Address)
                @Html.ValidationMessageFor(m => m.Address)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Ssn)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Ssn)
                @Html.ValidationMessageFor(m => m.Ssn)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Division)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Division)
                @Html.ValidationMessageFor(m => m.Division)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.SubDivision)
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.SubDivision)
                @Html.ValidationMessageFor(m => m.SubDivision)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.Password)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field" >
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <div class="form-actions">
					<input type="submit" class="btn btn-primary" value="Vista">
				</div>
            </p>
        </fieldset>
    </div>
}